import React from 'react';
import ReactDOM from 'react-dom';
import App from './bs4_use/App';//indexRouter'
// import App from './unext/index2';//indexRouter'
const path = require('path');
function link(where, module_name) {
  // body...
  var thelink = document.createElement('link');
  thelink.setAttribute('rel', 'stylesheet');
  var file1 = path.join(where, module_name);
  thelink.setAttribute('href', file1);
  document.head.appendChild(thelink);
}
function getWhere() {
  return window.require('electron').ipcRenderer.sendSync('getpath');
}
let where = getWhere();
link('./', 'autosuggest.css');
link('./', 'react-datetime.css');
link(where, 'node_modules/bootstrap/dist/css/bootstrap.css');
link('./', 'index.css');
ReactDOM.render(
  <App />,
  document.getElementById('root')
);
